package com.fht.service.member.impl;

import com.fht.entity.MemberSet;
import com.fht.mapper.member.MemberSetMapper;
import com.fht.service.member.MemberSetService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;


@Service
@Slf4j
public class MemberSetServiceImpl implements MemberSetService {

    @Resource
    public MemberSetMapper memberSetMapper;

    @Override
    public MemberSet selectById(int i) {
        return memberSetMapper.selectByPrimaryKey(i);
    }

    @Override
    @Transactional
    public void update(MemberSet memberSet) {
        memberSetMapper.updateByPrimaryKeySelective(memberSet);
    }
}
